package edu.hwadee.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Carstock entity. @author MyEclipse Persistence Tools
 */

public class Carstock implements java.io.Serializable {

	// Fields

	private Integer carstockId;
	private Carcomplement carcomplement;
	private Company company;
	private Integer number;
	private Float price;
	private String note;
	private Set carsellcomplements = new HashSet(0);

	// Constructors

	/** default constructor */
	public Carstock() {
	}

	/** full constructor */
	public Carstock(Carcomplement carcomplement, Company company, Integer number, Float price, String note,
			Set carsellcomplements) {
		this.carcomplement = carcomplement;
		this.company = company;
		this.number = number;
		this.price = price;
		this.note = note;
		this.carsellcomplements = carsellcomplements;
	}

	// Property accessors

	public Integer getCarstockId() {
		return this.carstockId;
	}

	public void setCarstockId(Integer carstockId) {
		this.carstockId = carstockId;
	}

	public Carcomplement getCarcomplement() {
		return this.carcomplement;
	}

	public void setCarcomplement(Carcomplement carcomplement) {
		this.carcomplement = carcomplement;
	}

	public Company getCompany() {
		return this.company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Set getCarsellcomplements() {
		return this.carsellcomplements;
	}

	public void setCarsellcomplements(Set carsellcomplements) {
		this.carsellcomplements = carsellcomplements;
	}

}